package za.ac.lance.opencloseprinciple.obeys.model;

/**
 * File Name: Shape.java
 * Version:
 * Description: Open close principle (OCP) is obeyed because when a new shape
 * is added no modification is needed to made
 * Package: za.ac.lance.opencloseprinciple.obeys
 * Author: Lance
 * Date: Feb 24, 2012
 */
public abstract class ShapeObeys
{

    private int lineThickness;

    abstract void draw();

    public ShapeObeys(int lineThickness)
    {
        this.lineThickness = lineThickness;
    }

    public int getLineThickness()
    {
        return lineThickness;
    }

    public void setLineThickness(int lineThickness)
    {
        this.lineThickness = lineThickness;
    }

    @Override
    public String toString()
    {
        return "Shape{" + " lineThickness=" + lineThickness + '}';
    }
}
